﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;

namespace DevWeb.Biztalk.DeploymentSettings.Data.CodeFirst.Configurations
{
   public class IntegrationConfiguration:EntityTypeConfiguration<Integration>
   {

       public IntegrationConfiguration()
       {
           ToTable("Integration");

           Property(p => p.Description).HasMaxLength(500);
           Property(p => p.CreateDateTime).IsRequired();
           Property(p => p.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
           HasKey(p => p.Id);
           Property(p => p.ProductUpgradeCode).IsRequired();
          
           


       }
    }
}
